projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
45e2df6
)
(detect_coding): Preserve coding->mode.
author
Kenichi Handa
<handa@m17n.org>
Thu, 19 Feb 2009 02:42:46 +0000
(
02:42
+0000)
committer
Kenichi Handa
<handa@m17n.org>
Thu, 19 Feb 2009 02:42:46 +0000
(
02:42
+0000)
src/coding.c
patch
|
blob
|
history
diff --git
a/src/coding.c
b/src/coding.c
index fff4d01d8909db2cfe23092a0e49ffe6449ba290..ec57467f0230bf1b3cd5ba3d262b2755069fadac 100644
(file)
--- a/
src/coding.c
+++ b/
src/coding.c
@@
-5955,6
+5955,7
@@
detect_coding (coding)
struct coding_system *coding;
{
const unsigned char *src, *src_end;
+ int saved_mode = coding->mode;
coding->consumed = coding->consumed_char = 0;
coding->produced = coding->produced_char = 0;
@@
-6125,6
+6126,7
@@
detect_coding (coding)
setup_coding_system (XCDR (coding_systems), coding);
}
}
+ coding->mode = saved_mode;
}